package com.zby.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zby.model.pojo.Comment;
import com.zby.model.vo.CommentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    int insertData(Comment comment);

    List<CommentVo> selectComment(Integer id);

    List<CommentVo> selectFindChildren(@Param("id") Integer id, @Param("parentId") Integer parentId);
}
